package com.caption.inter.service.handler;
import com.caption.inter.entity.InterRequest;
import org.springframework.stereotype.Service;

@Service
public class PingAnBankHandler extends AbstractHandler implements Handler{
    @Override
    public void handle(InterRequest request) {
        decrypt(request);
    }

    @Override
    public void decrypt(InterRequest request) {
        System.out.println("执行解密");
        invoke(request);
    }

    @Override
    public void invoke(InterRequest request) {
         doProcess(request);
    }

}
